﻿@model OnlineStore.Web.Areas.Admin.Models.OrderSendViewModel
@{
    
}

<h2>选择发货地址</h2>

<div>
    <h3>您本次正在处理订单号为：@Model.Order.Uid 的订单</h3>

    <a asp-area="Admin" asp-controller="Contact" asp-action="Create" class="btn btn-primary">
        新增发货地址
    </a>
</div>

@foreach (var info in Model.ContactInfos)
{
    <div class="card">
        <div class="card-body">
            <h5 class="card-title">发货人姓名：@info.Name</h5>
            <p class="card-text">发货人联系方式：@info.Phone</p>
            <address class="card-footer">发货地址：@info.Address</address>
            <form asp-action="Send" asp-route-uid="@Model.Order.Uid" asp-route-contactId="@info.Id" method="post">
                <button type="submit" class="btn btn-outline-primary">选择这个</button>
            </form>
        </div>
    </div>
}